/*
 * App Global CSS
 * ----------------------------------------------------------------------------
 * Put style rules here that you want to apply globally. These styles are for
 * the entire app and not just one component. Additionally, this file can be
 * used as an entry point to import other CSS/Sass files to be included in the
 * output CSS.
 * For more information on global stylesheets, visit the documentation:
 * https://ionicframework.com/docs/layout/global-stylesheets
 */

/* Core CSS required for Ionic components to work properly */
@import "~@ionic/angular/css/core.css";

/* Basic CSS for apps built with Ionic */
@import "~@ionic/angular/css/normalize.css";
@import "~@ionic/angular/css/structure.css";
@import "~@ionic/angular/css/typography.css";
@import '~@ionic/angular/css/display.css';

/* Optional CSS utils that can be commented out */
@import "~@ionic/angular/css/padding.css";
@import "~@ionic/angular/css/float-elements.css";
@import "~@ionic/angular/css/text-alignment.css";
@import "~@ionic/angular/css/text-transformation.css";
@import "~@ionic/angular/css/flex-utils.css";
//@import "~summernote/dist/summernote-lite.min.css";

/* iconfont */
//@import "./assets/iconfont/iconfont.scss";

body {
  --mainColor: #0076FF;
  font-size: 20px;
}

.hydrated {
  border: none;
}

.toolbar-background {
  border: none;
}

ul {
  margin: 0;
  padding: 0;

  li {
    list-style: none;
  }
}

input, button {
  outline: none;
}

.main-header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

.search-content {
  flex: 1;
  margin: 10px 20px;
  background: white;
  border-radius: 20px;
  display: flex;
  justify-content: left;

  .search-icon {
    width: 22px;
    height: 22px;
    margin: 5px;
  }

  .search-input {
    padding: 2px 10px;
    width: 80%;
    border: none;
  }

}

.main-page {
  height: 93vh;
  overflow-y: auto;
  background: white;
  background-size: 100%;
}

.page-content {
  height: 100%;
  padding-top: 60px;
  overflow-y: auto;
  background: #ffffff;
  background-size: 100%;
}

.page-form {
  padding: 0 20px;

  p {
    margin: 0;
    border-bottom: 1px solid #E9E9E9;
  }

  .form-input {
    width: 100%;
    border: none;
    padding: 20px 0 8px 0;
    font-size: 1rem;
  }

  .form-verification {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .verification-input {
    flex: 1;
  }

  .verification-btn {
    color: #23417B;
    font-size: 0.9rem;
    display: inline-block;
    padding: 20px 0 8px 0;
  }
}

.form-reminder {
  color: #999999;
  font-size: 0.8rem;
  padding: 35px 0 35px 10px;
  vertical-align: center;

  .check-icon {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: white;
    border: 1px solid #5DDAD1;
    display: inline-block;
    margin-right: 2px;
    position: relative;
    top: 1px;
  }

  .checked-icon {
    background: #5DDAD1;
  }

  .form-hl-text {
    color: #5DDAD1;
  }
}

.text-list {
  color: #979DB0;
  font-size: 0.9rem;

  .list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(151, 157, 176, 0.2);
  }

  .item-icon {
    width: 20px;
    height: 20px;
  }

  .item-label {
    margin: 0 20px 0 10px;
    flex: 1;
  }

  .item-right {
    display: flex;
    justify-content: right;
    align-items: center;
  }

  .item-value {
    color: #23417B;
    text-align: right;
  }

  .icon-shield {
    width: 24px;
    height: 24px;
  }

  .arrow-button {
    width: 10px;
    height: 8px;
  }
}

.single-page {
  height: 100vh;
  padding-top: 60px;
  overflow-y: auto;
  background: #ffffff;
  background-size: 100%;
  box-shadow: 0 6px 8px rgba(51, 178, 187, 0.16);
  background: linear-gradient(270deg, #5EF1BD 0%, #5CD1D9 100%);

  .single-footer {
    margin-top: 30px;
  }
}

.single-content {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background: white;
  padding: 30px 24px;
  height: calc(100vh - 60px);
  overflow: hidden;
}


input::-webkit-input-placeholder {
  color: #cccccc;
}

input::-ms-input-placeholder {
  color: #cccccc;
}

input.ng-invalid {
  color: red;
}

input.ng-valid {
  color: #5CD7D3;
}

@mixin page-content {
  width: 100%;
  height: 100%;
  overflow-y: auto;
}

.img-block {
  @include page-content;

  img {
    width: 100%;
  }
}

.whole-page {
  @include page-content;
}

.selected-icon {
  color: #55CFD3;
}

.list-block {
  padding: 10px 20px;

  .list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: #00B3FF;
    border-bottom: 1px solid rgba(0, 179, 255, 0.2);
  }

  .list-item {
    width: 32px;
    height: 32px;
  }

  .item-text {
    flex: 1;
    font-size: 1.8rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .item-date {
    font-size: 0.8rem;
    color: rgba(0, 179, 255, 0.6);
  }

  span {
    padding: 15px 0;
  }
}

.text-ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.policy-title {
  color: #B4B8C7;
  padding: 0 20px;
  font-size: 2rem;
  font-weight: bold;
}

.space-row {
  height: 20px;
}

.primary-btn {
  padding: 8px 30px;
  background: linear-gradient(90deg, #5EF1BD 0%, #5CD1D9 100%);
  border-radius: 23px;
  color: white;
  font-size: 1.1rem;
}

@mixin block-btn-basic {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px 0;
  border-radius: 23px;
  color: white;
  font-size: 1.1rem;
}

.block-btn {
  @include block-btn-basic;
  background: linear-gradient(90deg, #5EF1BD 0%, #5CD1D9 100%);
}

.cancel-btn {
  @include block-btn-basic;
  background: #E9E9E9;
  color: #23417B;
}
